#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main()
{
    char c;
    scanf("%c", &c);
    if ('0' <= c && c <= '9')
        printf("digit");

    else if ('A' <= c && c <= 'Z')
        printf("capital letter\n");

    else if ('a' <= c && c <= 'z')
        printf("small letter\n");

    else
        printf("other character\n");

    return 0;
}